package cn.yj.cgs.dba.entity;

import cn.yj.cgs.dba.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author 永健
 * @since 2019-02-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_comment")
public class Comment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 内容
     */
    private String content;

    private String commentNo;

    /**
     * <br>
     * 顶级父id 就是在这一条下延伸的所有评论头头
     */
    private Integer parentId;

    /**
     * <br>
     * 被回复者Id
     */
    private String replyUserCode;


    /**
     * <br>
     * 被回复评论Id
     */
    private Integer directParentId;



    /**
     * 文章
     */
    private String articleNo;


    /**
     * <br>
     * 当前条评论者id
     */
    private String userCode;





    /**
     * 赞一个
     */
    private Integer goodCount;

    @TableLogic
    private Integer deleted;

}
